#include<iostream>
#include<string>
#include<deque>

using std::cout;
using std::endl;
using std::string;
using std::deque;

int main(void)
{
    string str;
    cout<<"请输入字符串"<<endl;
    std::cin>>str;
    deque<char> de(str.begin(),str.end());
    for(auto i=de.begin();i<de.end();++i)
    {
        cout<<*i<<" ";
    }
    cout<<endl;
}
